package com.zy.openchat.core.model.redpacket;

import android.os.Parcel;
import android.os.Parcelable;

public class RedPacketPickUser implements Parcelable {
    public long userId;
    public float price;
    public long gotAt;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.userId);
        dest.writeFloat(this.price);
        dest.writeLong(this.gotAt);
    }

    public RedPacketPickUser() {
    }

    protected RedPacketPickUser(Parcel in) {
        this.userId = in.readLong();
        this.price = in.readFloat();
        this.gotAt = in.readLong();
    }

    public static final Creator<RedPacketPickUser> CREATOR = new Creator<RedPacketPickUser>() {
        @Override
        public RedPacketPickUser createFromParcel(Parcel source) {
            return new RedPacketPickUser(source);
        }

        @Override
        public RedPacketPickUser[] newArray(int size) {
            return new RedPacketPickUser[size];
        }
    };
}
